package com.lee.dependsOn;

import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2022/1/5
 */
@Component("db")
public class DB {

    static {
        System.out.println("static db");
    }

    @PostConstruct
    public void initMethod() {
        System.out.println("db init");
    }
}
